home *** CD-ROM | disk | FTP | other *** search
/ Hardcore Visual Basic 5.0 (2nd Edition) / Hardcore Visual Basic 5.0 - Second Edition (1997)(Microsoft Press).iso / Source / WinTlb / COMCONST.IDL < prev    next >
Text File  |  1997-04-30  |  4KB  |  145 lines

  1.  
  2. // Typedefs
  3.  
  4. typedef enum EQBColor {
  5.     qbBlack           = 0,
  6.     qbBlue            = 1,
  7.     qbGreen           = 2,
  8.     qbCyan            = 3,
  9.     qbRed             = 4,
  10.     qbMagenta         = 5,
  11.     qbYellow          = 6,
  12.     qbWhite           = 7,
  13.     qbGray            = 8,
  14.     qbLightBlue       = 9,
  15.     qbLightGreen      = 10,
  16.     qbLightCyan       = 11,
  17.     qbLightRed        = 12,
  18.     qbLightMagenta    = 13,
  19.     qbLightYellow     = 14,
  20.     qbBrightWhite     = 15
  21. } EQBColor;
  22.  
  23.  
  24. [
  25. #ifdef UNICODE
  26. uuid(64675060-3A82-101B-8181-00AA003743D3),
  27. #else
  28. uuid(64674060-3A82-101B-8181-00AA003743D3),
  29. #endif
  30. helpstring("Control Character Strings and Other Common Constants"),
  31. dllname("NOSUCH.DLL")
  32. ]
  33. module CommonConst {
  34.  
  35.     [ helpstring("Unicode build") ]
  36. #ifdef UNICODE
  37.     const short UnicodeTypeLib = -1;
  38. #else
  39.     const short UnicodeTypeLib = 0;
  40. #endif
  41.  
  42.     [ helpstring("Empty string (\"\")") ]
  43.     const LPSTR sEmpty = "";
  44.     // MIDL bug generates empty string rather than null character
  45.     //[ helpstring("Null character (ASCII 0)") ]
  46.     // const LPSTR sNullChar = "\0";
  47.     [ helpstring("Null string pointer (address zero)") ]
  48.     const LPSTR sNullStr = 0;
  49.     [ helpstring("Carriage return/line feed (ASCII 13,10)") ]
  50.     const LPSTR sCrLf = "\r\n";
  51.     [ helpstring("Double carriage return/line feed (ASCII 13,10,13,10)") ]
  52.     const LPSTR sCrLfCrLf = "\r\n\r\n";
  53.     [ helpstring("Carriage return (ASCII 13)") ]
  54.     const LPSTR sCr = "\r";
  55.     [ helpstring("Line feed (ASCII 10)") ]
  56.     const LPSTR sLf = "\n";
  57.     [ helpstring("Bell (ASCII 7)") ]
  58.     const LPSTR sBell = "\a";
  59.     [ helpstring("Backspace (ASCII 8)") ]
  60.     const LPSTR sBack = "\b";
  61.     [ helpstring("Tab (ASCII 9)") ]
  62.     const LPSTR sTab = "\t";
  63.     [ helpstring("Vertical Tab (ASCII 11)") ]
  64.     const LPSTR sVerticalTab = "\v";
  65.     [ helpstring("Form feed (ASCII 12)") ]
  66.     const LPSTR sFormFeed = "\f";
  67.  
  68.     // Uncommon consts
  69.     const LPSTR sSOH = "\x1";
  70.     const LPSTR sSTX = "\x2";
  71.     const LPSTR sETX = "\x3";
  72.     const LPSTR sEOT = "\x4";
  73.     const LPSTR sENQ = "\x5";
  74.     const LPSTR sACK = "\x6";
  75.     
  76.     const LPSTR sSO  = "\xe";
  77.     const LPSTR sSI  = "\xf";
  78.     const LPSTR sDLE = "\x10";
  79.     const LPSTR sDC1 = "\x11";
  80.     const LPSTR sDC2 = "\x12";
  81.     const LPSTR sDC3 = "\x13";
  82.     const LPSTR sDC4 = "\x14";
  83.     const LPSTR sNAK = "\x15";
  84.     const LPSTR sSYN = "\x16";
  85.     const LPSTR sETB = "\x17";
  86.     const LPSTR sCAN = "\x18";
  87.     const LPSTR sEM  = "\x19";    // MIDL bug generates wrong value
  88.     const LPSTR sSUB = "\x1a"; 
  89.     const LPSTR sESC = "\x1b";
  90.     const LPSTR sFS  = "\x1c";
  91.     const LPSTR sGS  = "\x1d";
  92.     const LPSTR sRS  = "\x1e";
  93.     const LPSTR sUS  = "\x1f";
  94.  
  95.     [ helpstring("Executable Extension") ]
  96.     const LPSTR sExeExt = ".EXE";
  97.     [ helpstring("Program Information File Extension") ]
  98.     const LPSTR sPifExt = ".PIF";
  99.     [ helpstring("Command File Extension") ]
  100.     const LPSTR sCmdExt = ".CMD";
  101.     [ helpstring("Batch File Extension") ]
  102.     const LPSTR sBatExt = ".BAT";
  103.     [ helpstring("Flat Executable File Extension") ]
  104.     const LPSTR sComExt = ".COM";
  105.  
  106.     [ helpstring("Backslash (directory separator)") ]
  107.     const LPSTR sBSlash = "\\";
  108.     [ helpstring("Double backslash (network directory indicator)") ]
  109.     const LPSTR sBSlash2 = "\\\\";
  110.     [ helpstring("Colon (drive separator)") ]
  111.     const LPSTR sColon = ":";
  112.     [ helpstring("Dot (file extension separator)") ]
  113.     const LPSTR sDot = ".";
  114.     [ helpstring("Space") ]
  115.     const LPSTR sSpace = " ";
  116.     [ helpstring("Single quote") ]
  117.     const LPSTR sQuote1 = "'";
  118.     [ helpstring("Double quote") ]
  119.     const LPSTR sQuote2 = "\"";
  120.     [ helpstring("Pipe (horizontal bar)") ]
  121.     const LPSTR sPipe = "|";
  122.     [ helpstring("Less than") ]
  123.     const LPSTR sLesser = "<";
  124.     [ helpstring("Greater than") ]
  125.     const LPSTR sGreater = ">";
  126.  
  127.     [ helpstring("Null pointer") ]
  128.     const long pNull = 0;
  129.     //[ helpstring("Null handle") ]
  130.     //const long hNull = 0;
  131.  
  132.     [ helpstring("Maximum directory length") ]
  133.     const int cMaxPath = 260;
  134.  
  135.     [ helpstring("Maximum file length") ]
  136.     const int cMaxFile = 260;
  137.  
  138.     // Keycodes that are missing or have confusing names in VB type library
  139.     [ helpstring("Page Up key.") ]
  140.     const int vbKeyPrior = 0x21;
  141.     [ helpstring("Page Down key.") ]
  142.     const int vbKeyNext = 0x22;
  143.  
  144. }
  145.